#include "stdafx.h"
#include "base/file/pe_file.h"

PEFile::PEFile()
{

}

PEFile::~PEFile()
{

}

bool
PEFile::Load(const TCHAR *pFilePath)
{
    if(NULL == pFilePath) {
        return false;
    }

    m_hFile.Set(::CreateFile(pFilePath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0));
    if(NULL == m_hFile) {
        return false;
    }

    return true;
}

CString
PEFile::GetValue(const CString &strKey)
{
    if(NULL == m_hFile) {
        return _T("");
    }

    return _T("");
}